//
//  LoactionModel.m
//  Contractor
//
//  Created by 金鑫 on 16/6/2.
//  Copyright © 2016年 star j. All rights reserved.
//

#import "LocationModel.h"

@implementation LocationModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init] ;
    if (self) {
        self.location1 = [aDecoder decodeObjectForKey:@"location1"] ;
        self.location1_cn = [aDecoder decodeObjectForKey:@"location1_cn"] ;
        self.location2 = [aDecoder decodeObjectForKey:@"location2"] ;
        self.location2_cn = [aDecoder decodeObjectForKey:@"location2_cn"] ;
        self.location3 = [aDecoder decodeObjectForKey:@"location3"] ;
        self.location3_cn = [aDecoder decodeObjectForKey:@"location3_cn"] ;
    }
    return self ;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.location1 forKey:@"location1"] ;
    [aCoder encodeObject:self.location1_cn forKey:@"location1_cn"] ;
    [aCoder encodeObject:self.location2 forKey:@"location2"] ;
    [aCoder encodeObject:self.location2_cn forKey:@"location2_cn"] ;
    [aCoder encodeObject:self.location3 forKey:@"location3"] ;
    [aCoder encodeObject:self.location3_cn forKey:@"location3_cn"] ;
}

@end
